<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('Nav/index')}">导航</a></li>
			<li><a href="{:url('Nav/add')}">添加导航</a></li>
			<li><a href="{:url('Nav/edit')}">修改导航</a></li>

		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('Nav/addPost')}">
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">标题<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-name" name="title" value="{$data.title}">
				</div>
			</div>
			<input type="hidden" name="id" value="{$data.id}">
			<div class="form-group">
				<label for="input-lll" class="col-sm-2 control-label">url<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-lll" name="url" value="{$data.url}">
				</div>
			</div>l
			<div class="form-group">
				<label for="input-url" class="col-sm-2 control-label">父级<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-url" name="parent_id" value="{$data.parent_id}">
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
					<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
				</div>
			</div>
		</form>
	</div>
	<script type="text/javascript">
		//编辑器路径定义
		var editorURL = GV.WEB_ROOT;
	</script>
	<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
	<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
	<script type="text/javascript">
		var editorcontent = new baidu.editor.ui.Editor();
		editorcontent.render('content');
	</script>
	<script src="__STATIC__/js/admin.js?v={$_static_version}"></script>
</body>
</html>
